//
//  ViewController.h
//  runteraters
//
//  Created by Sebastian Borggrewe on 16/11/2011.
//  Copyright (c) 2011 Robolo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>

@interface HunterController : UIViewController <CLLocationManagerDelegate> {
    CLLocationManager *locationManager;
    CLLocation *goTo;
    
    CLLocationDirection currentDirection;
    
    CLLocationDirection currentHeading;
    
    double updateInterval;
    
    // IBOutlets Label
    UILabel *txtDirection;
    UILabel *txtDistance;
    UILabel *txtUpdateInterval;
    
    // Outlets Image
    UIImageView *imgCompass;
    
    double currentRotation;
    
    NSTimeInterval lastUpdate;
    NSTimeInterval updateFrequency;
    
    int numberOfUpdates;
}

@property (nonatomic, retain) IBOutlet UILabel *txtDirection;
@property (nonatomic, retain) IBOutlet UILabel *txtDistance;
@property (nonatomic, retain) IBOutlet UILabel *txtUpdateInterval;

@property (nonatomic, retain) IBOutlet UIImageView *imgCompass;


- (double) toRadian: (double) val;
- (double) toDegrees: (double) val;
- (double) toBearing: (double) val;

- (void) updateArrowView;

@end
